<admintpl file="header" />
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>优惠信息列表</a></li>
        <li><a href="{:U('Operation/discount_add')}">添加优惠信息</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('Operation/discount_list')}">
        标题：<input type="text" name="formget[title]" style="width: 90px;" value="{$formget.title}">
        发布时间：
        <input type="text" name="formget[start_time]" class="js-date" value="{$formget.start_time|default=''}" style="width: 85px;" autocomplete="off">-
        <input type="text" class="js-date" name="formget[end_time]" value="{$formget.end_time}" style="width: 85px;" autocomplete="off"> &nbsp; &nbsp;
        &nbsp;&nbsp;
        <input type="submit" class="btn btn-pr
        imary" value="搜索" />
    </form>
    <form method="post" class="js-ajax-form">
       <table class="table table-hover table-bordered">
            <thead>
            <tr>
                <th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
                <th align="center">序号</th>
                <th>城市</th>
                <th>标题</th>
                <th>简介</th>
                <th>发布时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <foreach name="datas" item="vo" key="k">
                <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
                    <td align="center">{$k+1}</td>
                    <td>{$vo.cityid|getCityName}</td>
                    <td>{$vo.title}</td>
                    <td>{$vo.intro}</td>
                    <td>{$vo.addtime}</td>
                    <td align="center">
                        <a href="{:U('Operation/discount_edit',array('id'=>empty($vo['id'])?'':$vo['id'],'formget'=>$formget))}">修改</a>|
                        <a href="{:U('Operation/discount_del',array('id'=>empty($vo['id'])?'':$vo['id'],'formget'=>$formget))}" class="js-ajax-delete">{:L('DELETE')}</a>|
                        <a href="{:U('Operation/discount_see',array('id'=>empty($vo['id'])?'':$vo['id'],'formget'=>$formget))}">查看</a>
                    </td>
                </tr>
            </foreach>
            </tbody>
        </table>
        <if condition="empty($datas)">
            <div style="padding: 30px;text-align: center;color: #999999">
                <i class="fa fa-database" style="font-size: 38px"></i><br />
                暂无数据
            </div>
        </if>
        <div class="pagination">{$page}</div>
    </form>
</div>
<script src="__PUBLIC__/js/common.js"></script>

</body>
</html>